﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeBehind="PreviousEvents.aspx.cs" Inherits="CodeCamp12.PrevousEvents" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <script src="Scripts/PreviousEvents.js" type="text/javascript"></script>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <h3>Sessions:</h3>
    <div id="sessionsDiv">
       
    </div>
    <br/>
    <br/>
    <br/>
    <h3>Speakers:</h3>
    <div id="speakersDiv">
        
    </div>
    
    <script id="SessionTemplate" type="text/x-jQuery-tmpl">
            <div class="sessionDetailsHistory">
                <a href="FinishedSession.aspx?id=${ID}" class="title">${Title}</a><a class="lkToFinished" href="FinishedSession.aspx?id=${ID}" title="Click to see how this presentation went"><img src="images/icons/play.png" class="imagePlay"/></a>
                <br/>
                by <a href="#">${Speakers}</a>
                <br />
                
                <strong>Language: ${Language}</strong> <button class="btnSessionDescription">Show description</button>
                <br />
                <div class="sessionDescriptionHistory">
                        {{html Description}}
                </div>
                
            </div>
        </script>
        
      <script id="SpeakerTemplate" type="text/x-jQuery-tmpl">
        <div class='SpDivHistory'>
            <div class = "speakerImageHistory">
                <img src = 'GetImageForSpeaker.ashx?id=${ID}' width="130px" height="160px"/>
            </div>
            
            <div class = "speakerDataHistory">
                <a class="lkName" href="${Link}">${FirstName} ${LastName}</a>  <a href="GetFileForSpeaker.ashx?id=${ID}" class = "DownloadButtonHistory"> Download CV<img src="../images/icons/download.png" style="width:25px; height:20px; float:right;"/></a>
                <br/> <label style="font-style: italic">${ExpertIn}</label>
                <br /> ${Country},  ${CompanyName}
                <br/>    
                <br/>
                
                <button class="ShDisc" type="button">Show Details</button>
                <br/>
                <div class="descrDivHistory">
                    {{html Description}}
                </div>         
           </div>
         </div>
   </script>
</asp:Content>
